import axios from 'axios';

//http://v4.360hwj.com/promotion/seckill/list?pageNumber=1&pageSize=8&memberId=e6be5cdb212615afc1ec8f6c11d62f18&authorization=0dce667a7a35520e377cd7f4b126e7d4&source=wap&_=1576661209538
//http://v4.360hwj.com/promotion/coupon/center?memberId=e6be5cdb212615afc1ec8f6c11d62f18&pageNumber=1&pageSize=999&authorization=0dce667a7a35520e377cd7f4b126e7d4&source=wap&_=1576754498745 vip会员券
// 创建axios实例
const HL = axios.create({
  baseURL: 'http://v4.360hwj.com/promotion/seckill/list'
});

// 二次封装]
function get(params, config = {}) {
  return HL.get('', {
    ...config,
    params
  })
}

export default {
  get
}